﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ValidationError.cs" company="Collaboris Ltd.">
//   Copyright (c) Collaboris Ltd. All rights Reserved.
// </copyright>
// <summary>
//   Stores information about a particular
//   EntityList ValidationHelper error.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Collaboris.Saf.Engine
{
    /// <summary>
    /// Stores information about a particular
    /// EntityList ValidationHelper error.
    /// </summary>
    public class ValidationError
    {
        #region Fields (2) 

        private string entityProperty;
        private string validationError;

        #endregion Fields 

        #region Constructors (1) 

        /// <summary>
        /// Initializes a new instance of the <see cref="ValidationMsg"/> class.
        /// </summary>
        /// <param name="property">The property.</param>
        /// <param name="validationMsg">The validation MSG.</param>
        public ValidationError(string property, string validationMsg)
        {
            this.ValidationMsg = validationMsg;
            this.EntityProperty = property;
        }

        #endregion Constructors 

        #region Properties (2) 

        /// <summary>
        /// Gets or sets the entityList property.
        /// </summary>
        /// <value>The entityList property.</value>
        public string EntityProperty
        {
            get
            {
                return this.entityProperty;
            }
            set
            {
                this.entityProperty = value;
            }
        }

        /// <summary>
        /// Gets or sets the validation error.
        /// </summary>
        /// <value>The validation error.</value>
        public string ValidationMsg
        {
            get
            {
                return this.validationError;
            }
            set
            {
                this.validationError = value;
            }
        }

        #endregion Properties 
    }
}